package com.lohit.dbtest;

import java.util.Date;

public class AppointmentDetails implements Comparable {
	private long aid;
	private String patientName;
	private String aLocation;
	private String patientNumber;
	private String illness;
	private Date appDate;
	// private String date;
	// private String time;
	private int status;

	public long getAid() {
		return aid;
	}

	public void setAid(long aid) {
		this.aid = aid;

	}

	public String getPatientName() {
		return patientName;
	}

	public void setPatientName(String patientName) {
		this.patientName = patientName;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Date getAppDate() {
		return appDate;
	}

	public void setAppDate(Date appDate) {
		this.appDate = appDate;
	}

	@Override
	public int compareTo(Object another) {
		AppointmentDetails d1 = (AppointmentDetails) another;
		return appDate.compareTo(d1.appDate);
	}

	public String getPatientNumber() {
		return patientNumber;
	}

	public void setPatientNumber(String patientNumber) {
		this.patientNumber = patientNumber;
	}

	public String getIllness() {
		return illness;
	}

	public void setIllness(String illness) {
		this.illness = illness;
	}

	public String getaLocation() {
		return aLocation;
	}

	public void setaLocation(String aLocation) {
		this.aLocation = aLocation;
	}
}
